From: Karl Fogel Date: Thu, 19 Apr 2001 22:55:19 +0000 (+0000) Subject: * saveplace.el (save-place-alist-to-file): Removed no-effect code X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40630 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=020cf7dd80ad4a445703b65914ff2170e4ec6ac6;p=emacs.git * saveplace.el (save-place-alist-to-file): Removed no-effect code that inserted file content only to delete it immediately. Probably a cut-and-paste bug. Thanks to Juanma Barranquero for the patch. --- diff --git a/lisp/saveplace.el b/lisp/saveplace.el index 5ac3f344c62..f5f5111f17b 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el @@ -143,10 +143,6 @@ To save places automatically in all files, put this in your `.emacs' file: (message "Saving places to %s..." file) (set-buffer (get-buffer-create " *Saved Places*")) (delete-region (point-min) (point-max)) - (if (file-readable-p file) - (insert-file-contents file)) - (delete-region (point-min) (point-max)) - (goto-char (point-min)) (print save-place-alist (current-buffer)) (let ((version-control (cond